package com.check.operation.service;

import java.util.List;

import com.check.operation.model.Specimen;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

public class SpecimenAdapter extends BaseAdapter {

	private LayoutInflater layoutInflater;
	private List<Specimen> datas;
	
	public SpecimenAdapter(LayoutInflater layoutInflater, List<Specimen> datas) {
		super();
		this.layoutInflater = layoutInflater;
		this.datas = datas;
	}

	@Override
	public int getCount() {
		return datas.size();
	}

	@Override
	public Object getItem(int position) {
		return datas.get(position);
	}

	@Override
	public long getItemId(int position) {
		return 0;
	}

	@Override
	public View getView(int position, View view, ViewGroup parent) {
		
		return view;
	}

	static class ViewHolder {
		
	}
	
	public List<Specimen> getDatas() {
		return datas;
	}

	public void setDatas(List<Specimen> datas) {
		this.datas = datas;
	}

}
